package com.jdwx.opengl.face.utils;

/**
 * ****************************
 * Project：
 *
 * @AUTHER： YBB
 * CreateTime：2020/6/15 20:52
 * Describe：
 * ****************************
 */
public class FaceConfig {
    private static FaceConfig instance;

    public static FaceConfig getInstance() {
        if (instance == null) {
            synchronized (DFaceSetting.class) {
                if (instance == null) {
                    instance = new FaceConfig();
                }
            }
        }
        return instance;
    }
    //识别阈值
    public float CONFIDENCE = 0.70f;

    //RGB活体阈值
    public float RGB_LIVENESS_THRES = 0.70f;

    //RGB活体级别
    public int RGB_LIVENESS_LEVEL = 1;

    //检测最小脸
    public int DETECT_MIN_SIZE = 80;

    //人脸检测精度
    public int DETECT_PRECISION = 0;

    //识别最小脸
    public int RECOGNIZE_MIN_SIZE = 100;

    //是否开启RGB活体过滤
    public boolean ENABLE_RGBLIVENESS_FILTER = false;

    //是否清晰度过滤
    public boolean ENABLE_QUALITY_FILTER = true;

    //画面曝光质量过滤
    public boolean ENABLE_EXPOSURE_FILTER = false;

    //是否遮挡判断过滤
    public boolean ENABLE_COVER_FILTER = false;

    //摄像头分辨率宽
    public int CAMERA_WIDTH = 640;

    //摄像头分辨率高
    public int CAMERA_HEIGHT = 480;

    //彩色摄像头
    public int COLOR_CAMERAID = 1;

    //红外摄像头
    public int IR_CAMERAID = -1;

    //相机额外旋转角度
    public int CAMERA_ADDITIONAL_ROTATE = 0;

    //相机额外旋转角度
    public boolean CAMERA_IS_MIRROW = false;
}
